﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace _17bangMVC.Models
{
    public class PasswordModel
    {
        [Required(ErrorMessage = "Email不能为空")]
        [DataType(DataType.EmailAddress)]
        [EmailAddress(ErrorMessage = "电子邮件格式不正确")]
        public string Email { get; set; }
        public string Name { get; set; }
        [StringLength(4, MinimumLength = 4, ErrorMessage = "*验证码的长度只能为4")]
        [Required(ErrorMessage = "*验证码不能为空")]
        public string Code { get; set; }
    }
}